/*
package com.htao.train.batchjob.job;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.RandomUtil;
import com.htao.train.batch.feign.BusinessFeign;
import com.htao.train.common.resp.CommonResp;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.MDC;

import java.util.Date;

*/
/**
 * @Author： HTTT
 * @Date： 2024/1/8 21:53
 * @Describe：
 *//*

@DisallowConcurrentExecution //禁止并发
@Slf4j
public class DailyTrainJob implements Job {
    @Resource
    BusinessFeign businessFeign;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        MDC.put("LOG_ID", System.currentTimeMillis() + RandomUtil.randomString(3));
        log.info("生成15日后所有车次开始");
        DateTime dateTime = DateUtil.offsetDay(DateTime.now(), 15);
        Date date = dateTime.toJdkDate();
        CommonResp<Object> Resp = businessFeign.genDaily(date);
        log.info("生成15日后所有车次结束,结果为：{}",Resp);
    }
}
*/
